import request from '@/utils/request'

// 根据code查询设备信息
export function getDeviceDetailWithCode(code) {
  return request({
    url: `/system/device/iot/${code}`,
    method: 'get'
  })
}

export function bindDeviceToBuilding(data) {
  return request({
    url: `/system/device/iot/bind`,
    method: 'post',
	data
  })
}

export function unbindDevice(data) {
  return request({
    url: '/system/device/iot/unbind',
    method: 'post',
    data
  })
}
